﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入三个数：");
            int num1 = int.Parse(Console.ReadLine());
            int num2 = int.Parse(Console.ReadLine());
            int num3 = int.Parse(Console.ReadLine());
            int max = num1;
            if (num2>max) 
            {
                max = num2;
            }
            if (num3>max) 
            {
                max = num3;
            }
            Console.WriteLine("最大数为"+max);
            Console.ReadKey();
       }
    }
}
